package cc.comac.mom.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RestController;

import cc.comac.mom.api.EquipInWarehouseSpareRelationService;
import cc.comac.mom.bean.EquipInWarehouseSpareRelation;
import cc.comac.mom.bean.ResultDev;
import cc.comac.mom.datahandlers.entity.EquipInWarehouseSpareRelationDataHandler;
import cc.comac.mom.entity.EquipInWarehouseSpareRelationEntity;
import cc.comac.mom.util.ResultBean;
@Service
@RestController
public class EquipInWarehouseSpareRelationServiceImpl implements EquipInWarehouseSpareRelationService{

	@Autowired
	private EquipInWarehouseSpareRelationDataHandler equipInWarehouseSpareRelationDataHandler;
	@Override
	public ResultDev selectBySomeField(@RequestBody EquipInWarehouseSpareRelation equipInWarehouseSpareRelation) {
		
		return equipInWarehouseSpareRelationDataHandler.selectBySomeField(equipInWarehouseSpareRelation);
	}
	@Override
	public ResultBean batchDelete(@RequestBody List<EquipInWarehouseSpareRelationEntity> list) {
		
		return equipInWarehouseSpareRelationDataHandler.batchDelete(list);
	}

}
